﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shop.Core.Properties;

namespace Shop.Core.Domain.Orders
{
    public class CancelledNode : BaseFlowNode
    {
        #region Members of IOrderBehavior

        public override bool CanPay(Order order)
        {
            return false;
        }

        public override bool CanEdit(Order order)
        {
            return false;
        }

        public override bool CanCancel(Order order)
        {
            return false;
        }

        public override void Cancel(Order order)
        {
        }

        #endregion

        #region Members of IOrderStatus

        public override OrderStatus StatusCode
        {
            get
            {
                return OrderStatus.Cancelled;
            }
        }

        #endregion
    }
}
